<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="plugin-body">
        <button id="button">点击我</button>
        <div id="container"></div>
    </div>
</body>
<script src="./index.js"></script>
<script>
    test();
</script>
<script>
    const vscode = acquireVsCodeApi();
    document.getElementById("button").addEventListener("click", function () {
    // document.getElementById("container").innerHTML = "点击后这里会有内容显示出来";
        vscode.postMessage({
                            command: 'alert',
                            text: '你好，这是网页的动态内容哦 '
                        })
});

</script>
</html>